package com.jnc.web.support.job.task;

import cn.hutool.http.HttpUtil;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @Auther: jjn
 * @Date: 2020/4/13 17:57
 * @Desc: Demo异步任务
 */
@Slf4j
@Setter
public class DemoTask implements Runnable {

    private String url;
    private String json;

    /**
     * 异步执行任务
     */
    @Override
    public void run() {
        String resp = HttpUtil.post(url, json);
        log.info(resp);
    }

}
